<div class="bh-content">
		<div class="bh-ly-jj-uppw_con bh-padT10">
			<?php $this->renderPartial('application.views.partials.personal.personal')?>
			<div class="bh-pj-jp-right-two bh-ly-jj-pw_right font_cr4 bh-Border_1 bh-fr">
				<h3>订单详情</h3>
				<div class="bh-ly-jj-vieworder bh-mtop15 bh-Border_1">
                	<table class="bh-mTBLR">
						<tr height="35">
							<td align="right"  width='110px'>订单编号：</td>
							<td width='660px'><?php echo CHtml::value($model, 'sn')?></td>
						</tr>
						<tr height="35">
							<td align="right">联系人：</td>
							<td><?php echo CHtml::value($model, 'receiverInfo.receiver')?></td>
						</tr>
						<!--<tr height="35">
							<td align="right">收货地址：</td>
							<td><?php echo Yii::app()->enum->lookup('district',CHtml::value($model, 'receiverInfo.province'))
							               .Yii::app()->enum->lookup('district',CHtml::value($model, 'receiverInfo.city'))
							               .Yii::app()->enum->lookup('district',CHtml::value($model, 'receiverInfo.district'))?>
							</td>
						</tr>
						-->
						<tr height="35">
							<td align="right">联系电话：</td>
							<td><?php echo CHtml::value($model, 'receiverInfo.mobile')?></td>
						</tr>
						<?php if (!in_array($model->getAttribute('object_type'), array('OrderHotel','OrderScenic'))):?>
						<tr height="35">
							<td align="right">邮箱：</td>
							<td><?php echo CHtml::value($model, 'receiverInfo.email')?></td>
						</tr>
						<?php endif;?>
						<tr height="35">
							<td align="right">商品名称：</td>
							<td><?php echo CHtml::value($model, 'items.goods.title')?></td>
						</tr>
						<tr height="35">
							<td align="right">商品数量：</td>
							<td><?php echo CHtml::value($model, 'items.item_num')?></td>
						</tr><!--
						<tr height="35">
							<td align="right">商品单价：</td>
							<td>￥<?php echo CHtml::value($model, 'items.item_price')?></td>
						</tr>
						--><tr height="35">
							<td align="right">订单价格：</td>
							<td>￥<?php echo CHtml::value($model, 'total')?></td>
						</tr>
						<tr height="35">
							<td align="right">下单时间：</td>
							<td><?php echo $model->create_time?></td>
						</tr>
						<tr height="35">
							<td align="right">订单状态：</td>
							<td><?php echo $model->stateHandle->lookup()?></td>
						</tr>
						<tr height="35">
							<td align="right">支付状态：</td>
							<td>
								<?php echo CHtml::value($model, 'payStatus')?>
								<?php
									if ($model->isPayAble())
										echo CHtml::link('【去付款】',Yii::app()->controller->createUrl('pay',array('id'=>$model->id)),array('target'=>'_blank'));
								?>
							</td>
						</tr>
					</table>
                </div>
                <?php
                	$fileName = lcfirst(get_class($model));
                	$this->renderPartial("partials/{$fileName}",array('model'=>$model))
                ?>
			</div>
			<div class="bh-space"></div>
		</div>

	</div>